<template>
  <div class="nav">
    <van-nav-bar
      :title="title"
      left-text="返回"
      left-arrow
      @click-left="$router.go(-1)"
    />
  </div>
</template>
<script>
export default {
  props: {
    title: {
      type: String,
      requred: true
    }
  }
}
</script>
<style lang="scss" scoped>
.nav{
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 10;
}
</style>